/// <reference path="Context.ts" />
/// <reference path="Enumerations\InitializationReason.ts" />

declare module Microsoft.Office.WebExtension {

    /** Represents an instance of an app, which provides access to the top-level objects of the API. */
    //export class Office {

       /** Gets the Context object that represents the runtime environment of the app and provides access to the top-level objects of the API. */
      export  var  context: Microsoft.Office.WebExtension.Context;

        /** Creates a promise to return a binding based on the selector string passed in. */
       export function select(str: string, onError: () => void);

        /** Toggles on and off the Office alias for the full Microsoft.Office.WebExtension namespace. */
        export function useShortNamespace(useShortcut: boolean);

        /** Occurs when the runtime environment is loaded and the app is ready to start interacting with the application and hosted document. */
        export var initialize: (reason?: Microsoft.Office.WebExtension.InitializationReason) => void;

    //}
}